package com.xja.security.service.impl;

import com.xja.security.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName RoleServiceImpl
 * @Description
 * @Author MaYu
 * @Date 2022/4/12 14:49
 * @Version 1.0
 **/
@Service
public class RoleServiceImpl implements RoleService {
    @Override
    public List<String> findRoleByAid(Integer aId) {
        List<String> roleList = new ArrayList<>();
        roleList.add("ROLE_login_manager");
        if (aId == 1){
            roleList.add("ROLE_user_manager");
        }
        if (aId == 2){
            roleList.add("ROLE_prod_manager");
        }
        return roleList;
    }
}
